# -*- coding: utf-8 -*-
# @Time : 2021/2/3 8:40
# @Author : 加钱哥
# @Email : scg@gmail.com
# @File : tool_one.py
# @Project : test

from tools.tool_two import TOOL_PATH
import xlrd
import os
def get_data(filename=None):
    if filename is None:
        filename=os.path.join(TOOL_PATH,"schedule.xlsx")
    workbook=xlrd.open_workbook(filename)
    table=workbook.sheet_by_index(0)
    lst=[]
    for row in range (1,table.nrows):
        lst.append(table.row_values(row))
    return lst

def get_data_two(filename=None):
    if filename is None:
        filename=os.path.join(TOOL_PATH,"schedule.xlsx")
    workbook=xlrd.open_workbook(filename)
    table=workbook.sheet_by_index(1)
    lst=[]
    for row in range (1,table.nrows):
        lst.append(table.row_values(row))
    return lst